package Facade;

public class ClientServerFacade {
    private CheckWord checkWord;
    private Charge charge;
    private TypeSetting typeSetting;
    String advertisement;

    public ClientServerFacade(String advertisement){
        this.advertisement=advertisement;
        checkWord = new CheckWord(advertisement);
        charge = new Charge(checkWord);
        typeSetting = new TypeSetting(advertisement);
    }
    public void doAdvvertisement(){
        checkWord.setChargeAmount();
        charge.giveCharge();
        typeSetting.typeSeting();
    }
}
